﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TournamentDatabase.Database;

namespace TournamentDatabase.Objects
{
	public class Judge : Member
	{
		private string m_qualification;

		public string Qualification
		{
			get { return m_qualification; }
			set { m_qualification = value; }
		}

		public Judge() : this(0, "") { }
        public Judge(int mid, string qualification)
        {
            m_mid = mid;
            m_qualification = qualification;
        }
		public Judge(OracleDataReader odr) : base(odr)
		{
			//MemberID = int.Parse(odr["mid"]);
			Qualification = odr["qualification"].ToString();
		}

		public static List<Judge> ParseJudge(OracleDataReader odr)
		{
			List<Judge> list = new List<Judge>();
			while (odr.Read())
			{
				list.Add(new Judge());
			}
			return list;
		}
	}

}
